package com.xiejj.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xiejj.domain.Patient;
import com.xiejj.repository.PatientRepository;
import com.xiejj.service.PatientService;
@Service("patientService")
public class PatientServiceImpl implements PatientService{
	@Resource
	private PatientRepository repository;
	@Override
	public void addToIndex(Patient patient) {
		repository.save(patient);
	}

	@Override
	public void deleteFromIndex(Long id) {
		repository.delete(id.toString());
	}

}
